import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

// 清除默认样式
import 'normalize.css'
import '@/assets/css/index.less'
import 'bootstrap/dist/css/bootstrap.min.css'
import 'bootstrap'
import 'element-plus/theme-chalk/el-loading.css'
import 'element-plus/theme-chalk/el-message.css'
import { globalRegister } from '@/global'
// import '@/mock'

const app = createApp(App)

app.use(store)
app.use(router)

/* app.directive('reactive', {
  mounted(el: Element, binding: any) {
    window.addEventListener('resize', () => {
      console.log(binding)
    })
  },
}) */

// 注册组件
globalRegister(app)

app.mount('#app')
